package com.sc.base.common.spring.utils;


import com.sc.base.apiutils.api.ErrorInfo;
import com.sc.base.common.utils.JacksonUtils;

import java.util.Map;

/**
 * @Author LIUWEI
 * @Date 2017/8/19 15:07
 */
public class DefaultErrorInfoConverter implements ErrorInfoConverter {
    @Override
    public Map<String, Object> convertErrorInfoToMap(ErrorInfo errorInfo) {
        return JacksonUtils.object2Map(errorInfo);
    }
}
